<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:p="http://primefaces.org/ui">

<f:view>
	<h:head>
		<ui:include src="cssMenuICON.xhtml" />
		<ui:insert name="caminhoScript" />
	</h:head>

	<h:body>

		<h:form id="form">
			<!-- Pagina de Listagem -->
			<ui:include src="cabecalhoPadrao.xhtml" />

			<ui:insert name="demaisPaineisAntesObjetoMaster" />
			<!-- 2-column layout -->
			<div class="row row-offcanvas row-offcanvas-right">
				<h:panelGroup layout="block" styleClass="col-md-12"
					style="padding-left:25px;padding-right:25px;">


					<ui:insert name="meusBreadCrumbs" />
					<p:panel header="Dados do Objeto Master" toggleable="true"
						collapsed="false" toggleSpeed="#{i18n['toggle.speed']}">
						<ui:insert name="camposDoObjetoMaster"> Insira aqui os campos do objeto master! </ui:insert>
					</p:panel>

					<p:messages id="msgs" showDetail="true" autoUpdate="true"
						closable="true" escape="false" />

					<h:panelGroup id="panelFormularioEdicao" layout="block"
						rendered="#{pManagedBean.isExibirFormEdicao}">
						<p:panel
							header="#{i18n.formTitulo} ( #{i18n.operacao}: #{pManagedBean.tipoOperacao} )"
							toggleable="true" style="font-size:12px"
							toggleSpeed="#{i18n['toggle.speed']}">

							<ui:include src="templateForm-painelUnico.xhtml" />
							<ui:include src="botoesPadraoFormularios.xhtml" />

						</p:panel>
					</h:panelGroup>
					<ui:include src="templateLista-panelFiltroPesquisa.xhtml" />
					<ui:include src="templateLista-panelListagem.xhtml" />
					<ui:include src="exportarDados.xhtml" />
					<ui:insert name="demaisPaineisDepoisExportadorDados" />
				</h:panelGroup>
			</div>

			<!-- Dialogos -->
			<ui:include src="dialogoExclusao.xhtml" />
			<ui:include src="dialogoAjuda.xhtml" />
			<ui:insert name="demaisDialogos" />

		</h:form>
		<ui:insert name="scriptJavascript" />
		<ui:include src="/resources/templates/ajax-status.xhtml" />
		<ui:insert name="dialogoExterno" />

	</h:body>
</f:view>
</html>